package com.jwinni.IO;

import com.jwinni.IO.impl.DemoFilterImpl;

import java.io.File;

public class DemoFilter {
    public static void main(String[] args) {
        SeachFileList(new File("E:\\mobset"));
    }


    //过滤器文件搜索
    public  static  void  SeachFileList(File file) {

        File[] files = file.listFiles(new DemoFilterImpl());
        for (File s : files) {
            if (s.isDirectory()) {
                SeachFileList(s);
            } else {
                    System.out.println(s);

            }
        }
    }
}


